package {
	import flash.display.Sprite;
	import flash.events.TimerEvent;
	import flash.utils.Timer;

	public class HelloWorld2 extends Sprite
	{
		private var counter:Number = 0;
		public function HelloWorld2()
		{
			var timer:Timer = new Timer(1000,0);
			timer.addEventListener(TimerEvent.TIMER,onTimer,false,0,true);
			timer.start();
		}
		private function onTimer(event:TimerEvent):void
		{
			counter++;
			trace(counter);
		}
	}
}
